{"version":3,"sources":["menu-configurable.bundle.js"],"names":["this","BX","UI","exports","main_core","main_core_events","main_popup","ui_draganddrop_draggable","_id","babelHelpers","classPrivateFieldLooseKey","_items","_menu","_bindElement","_draggable","_promise","_closeResolver","_maxVisibleItems","_resolveWithCancel","_resolveWithItems","_getItemById","_createMenu","_getSaveItem","_getCancelItem","_save","_cancel","_getMenuItem","_getVisibleSectionTitleItem","_getHiddenSectionTitleItem","_initDraggable","_saveItemsFromMenu","_getItemNode","_getHiddenSectionTitleNode","_adjustMaxVisibleItems","Menu","EventEmitter","constructor","parameters","super","Object","defineProperty","value","_adjustMaxVisibleItems2","_getHiddenSectionTitleNode2","_getItemNode2","_saveItemsFromMenu2","_initDraggable2","_getHiddenSectionTitleItem2","_getVisibleSectionTitleItem2","_getMenuItem2","_cancel2","_save2","_getCancelItem2","_getSaveItem2","_createMenu2","_getItemById2","_resolveWithItems2","_resolveWithCancel2","writable","classPrivateFieldLooseBase","Type","isStringFilled","id","Math","random","toString","substring","items","bindElement","Number","maxVisibleItems","setEventNamespace","open","_babelHelpers$classPr2","_babelHelpers$classPr","getPopupWindow","setBindElement","show","Promise","resolve","close","setItems","getItemsFromMenu","isHidden","itemsContainer","querySelectorAll","forEach","node","classList","contains","itemId","dataset","item","clonedItem","Runtime","clone","push","isCanceled","find","destroy","menuItems","visibleItems","filter","hiddenItems","MenuManager","create","events","onClose","bind","text","Loc","getMessage","onclick","event","BaseEvent","emit","isDefaultPrevented","html","className","delimiter","Draggable","container","draggable","dragElement","type","MOVE","subscribe","querySelector","runtimeItems","visibleItemsCount","length","hiddenSectionTitleNode","index","Dom","insertAfter","MenuConfigurable","Event","Main","DragAndDrop"],"mappings":"AAAAA,KAAKC,GAAKD,KAAKC,IAAM,GACrBD,KAAKC,GAAGC,GAAKF,KAAKC,GAAGC,IAAM,IAC1B,SAAUC,EAAQC,EAAUC,EAAiBC,EAAWC,GACxD,aAEA,IAAIC,EAAmBC,aAAaC,0BAA0B,MAE9D,IAAIC,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